package com.vcs.frm.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vcs.frm.domain.NoticeBoard;

public class NoticeBoardRowMapper implements RowMapper<NoticeBoard>{

	@Override
	public NoticeBoard mapRow(ResultSet rs, int rowNum) throws SQLException {
		NoticeBoard nb = new NoticeBoard();
		nb.setId(rs.getInt("ID"));
		nb.setNoticeBoardText(rs.getString("NOTICE_BOARD_TEXT"));
		nb.setUpdatedBy(rs.getString("UPDATED_BY"));
		nb.setUpdatedDate(rs.getDate("UPDATED_DATE"));
		return nb;
	}

	
}
